package com.designpattern.StrategyPattern.example2;

/**
 * @Author yue
 * @Date 2022-03-16
 * @Describe
 */


public interface ShareStrategy {
    // 定义分享策略执行方法
    void shareAlgorithm(String param);
}

class OrderItemShare implements ShareStrategy {
    @Override
    public void shareAlgorithm(String param) {
        System.out.println("当前分享图片是" + param);
    }
}
class MultiItemShare implements ShareStrategy {
    @Override
    public void shareAlgorithm(String param) {
        System.out.println("当前分享图片是" + param);
    }
}
class SingleItemShare implements ShareStrategy {
    @Override
    public void shareAlgorithm(String param) {
        System.out.println("当前分享图片是" + param);
    }
}